<?php
/*
 * BorderCrossings
 * 
 */
class BorderCrossings
{
	
	var $crossings;
	var $limit;
	
	function BorderCrossings()
	{		
		
	}
	
	/**
	 * @method		setLimit
	 * @param			limit
	 * @return			void
	 *
	 */
	public function setLimit( $limit )
	{
		$this->limit = $limit;
	}
	
	/**
	 * @method		getLimit
	 * @param			void
	 * @return			limit
	 *
	 */
	public function getLimit()
	{
		return $this->limit;
	}
	
	/**
	 * @method		setCrossings
	 * @param			crossings
	 * @return			void
	 *
	 */
	function setCrossings( $crossings )
	{
		$this->crossings = $crossings;
	}
	
	/**
	 * @method		getCrossings
	 * @param			void
	 * @return			crossings
	 *
	 */
	function getCrossings()
	{
		return $this->crossings;
	}
	
	function addCrossing($crossing)
	{
		if( $this->crossings == null )
		{
			$this->crossings = array();
		}
		array_push($this->crossings, $crossing);
	}
	
	function __toString()
	{
		$str = "[border-crossings";
		if( $this->crossings != null )
		{
			$str .= $this->crossings;
		}
		$str .= "]";
		return $str;
	}	
	
}
?>